package com.wsd.jing.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * All rights Reserved, Designed By www.tom.com
 *
 * @author tom
 * @version 1.0.0
 * @projectName: jing
 * @packageName: com.wsd.jing.result
 * @className: CommonRequest
 * @description 通用请求对象
 * @createDate 2022/11/11 19:45
 * @copyright 2022/11/11 19:45 www.tom.com Inc. All rights reserved.
 */
@Setter
@Getter
@ApiModel(value = "CommonRequest对象", description = "分页排序对象")
public class CommonRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("当前页面数据量")
    private int pageSize = 10;

    @ApiModelProperty("当前页码")
    private int pageNum = 1;

    @ApiModelProperty("排序字段")
    private String field;

    @ApiModelProperty("排序规则，asc升序，desc降序")
    private String order;
}
